//
// Created by Administrator on 2023/10/5.
//

#include <iostream>
#include <vector>
#include "arrUtil.h"
using namespace std;

int main()
{
    vector<int> a={8,7,5,6,4,3,2,1};
    randVector(a,1000);
    for (int i = 0; i < a.size(); ++i)
    {
        int cur = a[i];
        int j=i-1;
        while(cur<a[j] && j>=0)
        {
            a[j+1]=a[j];
            --j;
        }
        a[j+1]=cur;
    }
    printVector(a);
    cout<<checkSortVector(a);
    return 0;
}